/**
 * @description 折叠板的右上角组件
 * 1. 复制
 * 2. 黏贴
 */
import { Button, Space } from "antd"

function AttrExtra({ onEvent }) {
  let handleClick = (event, eventKey) => {
    event.stopPropagation()
    onEvent(eventKey)
  }
  return (
    <Space size='small'>
      <Button size='small' onClick={(event) => handleClick(event, 'copy')}>复制</Button>
      <Button size='small' onClick={(event) => handleClick(event, 'paste')}>黏贴</Button>
    </Space>
  )
}

export default AttrExtra